package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

/**
 * @Author np
 * @Date 2020/10/8 18:32
 * @Version 1.0
 * @Description: 权限
 */
public interface PermissionService {
    /**
     * 权限分页查
     * @param queryPageBean
     * @return
     */
    public PageResult findPage(QueryPageBean queryPageBean);

    /**
     * 新增
     * @param permission
     */
    public void add(Permission permission);

    public void deleteById(Integer id);

    public Permission findById(Integer id);

    public void edit(Permission permission);

    public List<Permission> findAll();
}
